Skip to content

Conversation

@jktjkt
Copy link
Contributor

@jktjkt jktjkt commented Oct 30, 2025

As confirmed by Michal, the parsing code will try to read the notifications module, if it is available, or if the parsed data from the ietf-yang-types module are not available. As a result, a context which has not loaded the notifications module and which was not created with LY_CTX_SET_PRIV_PARSE will return an error when parsing notifications.

As confirmed by Michal, the parsing code will try to read the
`notifications` module, if it is available, or if the parsed data from
the `ietf-yang-types` module are not available. As a result, a context
which has not loaded the `notifications` module *and* which was not
created with LY_CTX_SET_PRIV_PARSE will return an error when parsing
notifications.
@michalvasko
Copy link
Member

That is not accurate. Normal context will work fine because it keeps the parsed modules and nothing else is needed. It is specific to sysrepo that it frees the parsed modules to save some memory except when the LY_CTX_SET_PRIV_PARSED flag is used when the modules are not freed (but is mostly a side-effect of the flag).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants